package com.ace3l.legal.gwt.lawfirmportal.mainpage.client;

import com.ace3l.legal.gwt.domainmodule.client.Ace3LPageTemplate;
import com.synesthesiaconsulting.gwt.resources.client.GWTActionUnitFactory;
import com.synesthesiaconsulting.gwt.resources.client.DirectorUnit;

import com.google.gwt.user.client.ui.*;

/**
 * Created by IntelliJ IDEA.
 * User: ageer
 * Date: Jul 25, 2008
 * Time: 10:11:31 PM
 * To change this template use File | Settings | File Templates.
 */
public class LawFirmPortal extends Ace3LPageTemplate {


    public void init() {
        director.addModule("lawfirmportal.LawFirmPortal");
        director.addModule("lawfirmportal.CreateProject");
        director.getDirector()
                .mapAction("lawfirmportal.LawFirmPortal.logout", "homeportal.Ace3LPortal.$SELF");
        director.getDirector()
                .mapAction("lawfirmportal.LawFirmPortal.createproject", "lawfirmportal.CreateProject.$SELF");
        
        DirectorUnit bodyPanelManager = director.getDirector("lawfirmportal.LawFirmPortal")
                                                .addSubModule("bodyPanel");
        LawFirmPortalWidget home = new LawFirmPortalWidget(director.getDirector("lawfirmportal.LawFirmPortal"));
        bodyPanelManager.addAction("startPage", GWTActionUnitFactory.makeGWTNavigationUnit(home));

        bodyPanelManager.applyActionTo("startPage",bodyPanel);
//        bodyPanel.add(new HTMLPanel(director.getDirector().toHTML()));
        

    }
}
